package com.huawei.appmarket.service.store.awk.card;

import android.content.Context;
import com.huawei.appgallery.foundation.ui.framework.cardkit.bean.CardBean;
import com.huawei.appmarket.service.store.awk.bean.HorizontalAppWelfareCardBean;
import com.huawei.appmarket.service.store.awk.bean.HorizontalAppWelfareGiftItemCardBean;
import com.huawei.appmarket.service.store.awk.bean.HorizontalAppWelfareItemCardBean;
import java.util.Collections;
import java.util.List;
import o.chy;
import o.Logger;
import o.dte;

public class HorizontalAppWelfareCard extends NormalHorizonCard {
    public HorizontalAppWelfareCard(Context context) {
        super(context);
    }

    public void ˏ(CardBean cardBean) {
        if (cardBean instanceof HorizontalAppWelfareCardBean) {
            HorizontalAppWelfareCardBean horizontalAppWelfareCardBean = (HorizontalAppWelfareCardBean) cardBean;
            if (!horizontalAppWelfareCardBean.ʽˊ()) {
                List ʼᐝ = horizontalAppWelfareCardBean.ʼᐝ();
                int i = 0;
                while (i < ʼᐝ.size()) {
                    if (ʼᐝ.get(i) instanceof HorizontalAppWelfareItemCardBean) {
                        HorizontalAppWelfareItemCardBean horizontalAppWelfareItemCardBean = (HorizontalAppWelfareItemCardBean) ʼᐝ.get(i);
                        horizontalAppWelfareItemCardBean.ˎ(dte.ॱ().ॱ(horizontalAppWelfareItemCardBean.ॱـ()).ॱ());
                        horizontalAppWelfareItemCardBean.ˋˋ(horizontalAppWelfareCardBean.ॱˉ());
                        for (HorizontalAppWelfareGiftItemCardBean ˋˋ : horizontalAppWelfareItemCardBean.ʻˋ()) {
                            ˋˋ.ˋˋ(horizontalAppWelfareCardBean.ॱˉ());
                        }
                        i++;
                    } else {
                        Logger.ˏ("HorizontalAppWelfareCard", "setData: list's item is not instanceof HorizontalAppWelfareItemCardBean");
                        return;
                    }
                }
                Collections.sort(ʼᐝ);
                horizontalAppWelfareCardBean.ˏ(true);
            }
        }
        super.ˏ(cardBean);
    }

    public void ॱ(chy o_chy) {
    }
}
